package info.ask4research.dao.impl;

import info.ask4research.dao.IMultipleChoiceDAO;
import info.ask4research.dao.core.impl.AbstractDaoImpl;
import info.ask4research.model.addons.MultipleChoice;

import org.hibernate.SessionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.orm.hibernate3.HibernateTemplate;
import org.springframework.stereotype.Repository;

@Repository("multipleChoiceDAO")
public class MultipleChoiceDAO extends AbstractDaoImpl<MultipleChoice> implements IMultipleChoiceDAO{

	public MultipleChoiceDAO() {
		super(MultipleChoice.class);
	}
	
	private HibernateTemplate hibernateTemplate;

	@Autowired
	public void setSessionFactory(SessionFactory sessionFactory) {
		hibernateTemplate = new HibernateTemplate(sessionFactory);
	}
}
